package com.design.pattern.observer;

import lombok.Data;
import org.springframework.context.ApplicationEvent;

@Data
public class OrderMessageEvent extends ApplicationEvent {

    private String message;

    public OrderMessageEvent(Object source,String message) {
        super(source);
        this.message=message;
    }
}
